package com.xiashitech.agent.db.dao.extload;

import cn.hutool.db.Db;
import cn.hutool.db.Entity;
import com.xiashitech.agent.db.extload.LocalDataSource;
import com.xiashitech.agent.db.entity.MsgLog;

import java.sql.SQLException;

public class MsgLogDao {

    public void insert(MsgLog msgLog) throws SQLException {
        Entity entity = Entity.create(MsgLog.TABLE_NAME).parseBean(msgLog, true, true);
        Db.use(LocalDataSource.getDS()).insert(entity);
    }

}
